import { defineUserConfig } from 'vuepress'
import { defaultTheme } from '@vuepress/theme-default'
import { viteBundler } from '@vuepress/bundler-vite'

export default defineUserConfig({
    bundler: viteBundler({
    viteOptions: {
        assetsInclude: ['**/*.JPEG']
    }
    }),
  lang: 'zh-CN',
  title: '宫玉成的个人空间',
  description: '前端工程师简历与项目展示',
  head: [
    ['link', { rel: 'icon', href: '/favicon.ico' }],
    ['meta', { name: 'author', content: '宫玉成' }],
    ['meta', { name: 'keywords', content: '前端开发,Vue,React,TypeScript' }]
  ],
  theme: defaultTheme({
    logo: '/logo.png',
     // 添加以下配置来禁用最后更新时间
    lastUpdated: false,
     // 禁用贡献者
    contributors: false,
    navbar: [
      {
        text: '首页',
        link: '/',
      },
      {
        text: '个人简历',
        link: '/resume/',
      },
      {
        text: '项目展示',
        link: '/projects/',
      }
    ],
    sidebar: {
      '/projects/': [
        {
          text: '项目展示',
          collapsible: true,
          children: [
            {
              text: '项目概览',
              link: '/projects/'
            },
            {
              text: '无代码组态大屏',
              link: '/projects/zutai'
            },
            {
              text: '标绘组件',
              link: '/projects/markerboard'
            },
            {
              text: '风电SCADA组态',
              link: '/projects/nari'
            },
            {
              text: '拓扑图组网',
              link: '/projects/topo'
            },
            {
              text: '交通测序',
              link: '/projects/ijaotong'
            }
          ]
        }
      ]
    }
    //   '/resume/': [
    //     {
    //       text: '个人简历',
    //       children: [
    //         '/resume/README.md',
    //         '/resume/skills.md',
    //         '/resume/experience.md',
    //         '/resume/projects.md',
    //       ],
    //     },
    //   ],
   
  })
})